#@web_layout?()
#define css()
<link rel="stylesheet" type="text/css" href="#(contextPath)/assets/front/web/css/laydate.css?#(getUUID())" />
<link rel="stylesheet" type="text/css" href="#(contextPath)/assets/front/web/css/layer.css?#(getUUID())" />
<link rel="stylesheet" type="text/css" href="#(contextPath)/assets/front/web/css/main.css?#(getUUID())" />
<link rel="stylesheet" type="text/css" href="#(contextPath)/assets/front/web/script/upload/webuploader.css" />
#end
#define content()
<div class="c-article">
    <form id="taskForm">
        <input type="hidden" id="extension_type" name="task.extension_type" >
        <input type="hidden" id="h5_type" name="task.h5_type" value="2" >
    <div class="g-info">
        <div class="u-title">任务信息</div>
        <div class="m-panel" style="border-radius: 2px">
            <div class="m-row">
                <div class="u-row-title"></div>
                <div style="padding:10px;color:#62bcc0">温馨提示:假如你需要大量网红参与你的任务，请选择主播认领方式发布任务</div>
            </div>
            
            <div class="m-row">
                <div class="u-row-title">任务标题:</div>
                <div class="u-row-box">
                    <div class="u-row-box-input">
                        <input name="task.task_title" placeholder="请输入任务标题信息，最多50个字符" class="u-row-cell-input" id="task_title" maxlength="50" />
                    </div>
                </div>
            </div>
            
            <div class="m-row">
                <div class="u-row-title">推广连接:</div>
                <div class="u-row-box">
                    <div class="u-row-box-input">
                        <input name="task.web_url" placeholder="请输入任务推广连接,如果没有请留空" class="u-row-cell-input" id="web_url" maxlength="50" />
                    </div>
                </div>
            </div>
            
            <div class="m-row">
                <div class="u-row-title">任务时间:</div>
                <div class="u-row-box">
                    <div class="u-row-box-input">
                        <input style="cursor: pointer !important;" placeholder="请输入开始时间"
                         id="task_start_time" name="task.task_start_time" class="u-row-cell-input" onClick="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'%y-%M-%d',maxDate:'#F{$dp.$D(\'task_end_time\')}'})" readonly/>
                    </div>
                    <div class="u-row-box-label">
                        <div class="u-row-cell-and"></div>
                    </div>
                    <div class="u-row-box-input">
                        <input style="cursor: pointer !important;" placeholder="请输入结束时间"
                        id="task_end_time" name="task.task_end_time" class="u-row-cell-input" onClick="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'task_start_time\')}'})" readonly/>
                    </div>
                </div>
            </div>
            <div class="m-row">
                <div class="u-row-title">任务类型:</div>
                <div class="u-row-box">
                    <div class="u-row-box-input">
                        <select name="task.task_type" class="u-row-cell-input">
                            <option class="" value="1">线上</option>
                            <option class="" value="2">线下</option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="m-row">
                <div class="u-row-title">任务酬劳:</div>
                <div class="u-row-box">
                    <div class="u-row-box-input">
                        <!--<input name="task.task_price" class="u-row-cell-input" style="flex:0;width:100px;color:#f96436;" />-->
                        <select name="task.task_price" class="u-row-cell-input">
                        	<option value="0">==请选择==</option>
                            #for(x:priceList)
                            <option class="" value="#(x.code)">#(x.name)</option>
                            #end
                        </select>
                        <div  class="u-row-cell-tip">元/人</div>
                    </div>
                </div>
            </div>
            <div class="m-row">
                <div class="u-row-title">推广方式:</div>
                <div class="u-row-box" id="tgfs">
                    <div class="u-row-box-input u-row-box-check" code="2" style="margin-right:20px;">
                        <div class="u-row-cell-check">主播认领</div>
                    </div>
                    <div class="u-row-box-input u-row-box-check u-row-box-check-active" code="1">
                        <div class="u-row-cell-check">指定主播</div>
                    </div>
                </div>
                <div class="u-row-title">主播人数:</div>
                <div class="u-row-box" >
                    <div class="u-row-box-input">
                        <input id="wh_number" name="task.wh_number" placeholder="指定主播模式，最多填10人"
                        class="u-row-cell-input" style="color:#f96436;" maxlength="8" />
                        <div class="u-row-cell-tip">人</div>
                    </div>
                </div>
            </div>
            <div class="m-row">
                <div class="u-row-title">任务说明:</div>
                <div class="u-row-box">
                    <div class="u-row-box-textarea">
                        <textarea id="task_description" placeholder="请输入任务说明，400字符以内"
                        name="task.task_description" class="u-row-cell-textarea" maxlength="400"></textarea>
                    </div>
                </div>
            </div>
            <div class="m-row">
                <div class="u-row-title">表现形式:</div>
                <div class="u-row-box" id="bxxs">
                    <div class="u-row-box-input u-row-box-check u-row-box-check-active" code="2" style="margin-right:20px;">
                        <div class="u-row-cell-check">有H5页面</div>
                    </div>
                    <div class="u-row-box-input u-row-box-check " code="1">
                        <div class="u-row-cell-check">无H5页面</div>
                    </div>
                </div>
                <div class="u-row-title"></div>
                <div class="u-row-box">
                </div>
            </div>
            <div class="m-row" id="pic_panel">
                <div class="u-row-title">上传素材:</div>
                <div class="u-row-box">
                    <div class="u-row-box-upload" id="upload">
                        <div class="" id="fileClick" >上传图片(可多图，图片大小限制1M以内)</div>
                        <div style="display: none" id="hiddenFiles">

                        </div>
                        <input type="file" id="files" style="display: none">
                        <div class="u-row-cell-upload" id="uploaded">

                        </div>
                    </div>
                </div>
            </div>
            <div class="m-row">
                <div class="task-next" onclick="asubmit()" id="next">下一步</div>
            </div>
        </div>
    </div>
    </form>
</div>
#end
#define script()
<script type="text/javascript">
    var contextPath="#(contextPath)";
    var doaminurl = "#(domain)";
</script>
<script type="application/javascript" data-main="#(contextPath)/assets/front/web/script/task_form" src="#(contextPath)/assets/front/web/script/require.js"></script>
#end